<% include '/WEB-INF/includes/header.gtpl' %>

<div align="center">

<script charset="utf-8" src="/js/kindeditor.js"></script>
<script>
    KE.show({
        id : 'contid',
        width : '700px',
        height : '400px'
    });
</script>

	<%
		request.article.each{ art ->
	%>
	
	<form action="/updatearticle" method="post">
	<table>
	<tr>
	<td>标题</td>
	<td><input type="text" name="title" value="${art.title}"></td>
	</tr>
	<tr>
	<td>正文</td>
	<td><textarea id="contid" name="content" cols="100" rows="8" >${art.content}</textarea></td>
	</tr>
	<tr>
	<td><input type="hidden" name="id" value="${request.article.key.id}"></td>
	<td><input type="submit" value="修改"</td>
	</tr>
	</table>
	
	<% } %>
	
</div>

<% include '/WEB-INF/includes/footer.gtpl' %>